package ltd.hanamaki.unittest.testng.demo04;

import org.testng.annotations.Test;

/**
 * 为每一个测试方法添加执行的优先级顺序
 */
public class PriorityTest {

    @Test(priority = 2)
    public void logout() {
        System.out.println("退出");
    }

    @Test(priority = 0)
    public void open_Browser() {
        System.out.println("打开浏览器");
    }
    @Test(priority = 1)
    public void login() {
        System.out.println("登录");
    }


}
